package com.zbkj.common.model.client.message;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import org.apache.ibatis.type.TypeHandler;

import java.util.Date;
import java.util.Map;

@Data
@TableName(value = "eb_client_message", autoResultMap = true)
public class Message {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer dialogId;
    private Integer senderId;
    private String content;
    private String type;
    private Integer isAgent;
    private String agentId;

    // 卡片展示
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> cardShow;

    //agent的sessionid
    private String agentSessionId;
    //本地存的sessionid
    private Integer sessionId;

    @TableLogic
    private Integer isDel;
    private Date createTime;
    private Date updateTime;
} 